package com.example.text.fg

import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.text.R
import com.example.text.base.BaseFragment
import com.example.text.databinding.FragmentMineBinding
import com.example.text.diyviews.CodeActivity
import com.example.text.main.viewmodel.MainViewModel
import com.example.text.ui.login.LoginActivity


class MineFragment : BaseFragment<MainViewModel,FragmentMineBinding>() {

    override val mLayoutResId: Int
        get() = R.layout.fragment_mine

    override fun initView() {
        super.initView()

        mBinding.diy.setOnClickListener {
         startActivity(Intent(requireActivity(), CodeActivity::class.java))
        }
        mBinding.login.setOnClickListener {
            startActivity(Intent(requireActivity(), LoginActivity::class.java))
        }


    }
}